<?php

//error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
//error_reporting(E_ERROR | E_WARNING | E_PARSE);

//Initialize URL
define("ServerHost","sis.samudera.co.id");
//define("ServerHost","10.70.215.15");
define("ServerURL", "http://".ServerHost."/sis_amp/");

$SERVER_URL = ServerURL;
$CURRENT_SCRIPT = $_SERVER["PHP_SELF"];

//Initiate Var
$CORNER_DATE   = date("j F Y",time());

//Directory Section
$ROOT_DIR          = "./";
$ROOT_TEMPLATE_DIR = "templates";
$ROOT_UPLOAD_DIR = "upload";
$ROOT_CLASS_DIR    = "class";
$ROOT_JS_DIR       = "js";
$ROOT_CSS_DIR      = "css";
$ROOT_IMG_DIR      = "images";
$MOD_DIR           = ServerURL."modules";

//Temporary DIR
$TMP_DIR = "/tmp";

//Database Hostname Configuration
$DBUser     =  "root";
$DBPassword = "Password123";
$DBName     = "amp_sis";
/*
$DBNameConsol[] = "idms_ais2008";    //jakarta
$DBNameConsol[] = "idms_ais2008smg"; //semarang
$DBNameConsol[] = "idms_ais2008sby"; //surabaya
$DBNameConsol[] = "idms_ais2008mdn"; //medan
$DBNameConsol[] = "idms_ais2008pjg"; //panjang
$DBNameConsol[] = "idms_ais2008bdg"; //bandung
*/

$ConsDB     = "idms_ais_kons";
define("ConsDB",$ConsDB);


$DBApp      = "amp_sis";
$DBProcess  = "amp_sis";
$DBCoins  = "idms_coins";
$DBGeneral  = "amp_general";
$OfficeDB1  = $DBName;
define("OfficeDB1",$OfficeDB1);
$OfficeDB2  = "ais_sby";
define("OfficeDB2",$OfficeDB2);
$TransDB    = "idms_ais_transfer";
define("TransDB",$TransDB);
define("BACKUP_DIR","../../backup");
$BACKUP_DIR = BACKUP_DIR;
//$DBHost     = "10.20.253.242";
//$DBHost       = "10.70.240.9";
$DBHost       = "localhost";
$HashKey  = "7deff7fbc09de8ab45ef3cbc78d";

//HTML Section
$POSITION       = "center"; //align for all content option are: center, left
$TITLE          = "Stevedoring Information System - PT. Samudera Indonesia Tangguh";
$SUBTITLE       = "";
$HEADER_IMAGE   = "images/header.gif";

//ROOT Template Section
$HTMLHeader = "$ROOT_TEMPLATE_DIR/header.html" ;
$HTMLFooter = "$ROOT_TEMPLATE_DIR/footer.html";
$HTMLMain   = "$ROOT_TEMPLATE_DIR/main.html";
$MenuJSGen  = "$ROOT_JS_DIR/jsmenu.php";

//Security Vars
define("LOGIN_USER", "AISUser");
define("LOGIN_PASSWORD", "AISPassword");
define("LOGIN_USERID", "AISUserID");
define("LOGIN_GROUPID", "AISGroupID");
define("LOGIN_GROUPNAME", "AISGroupName");
define("LOGIN_OFFICEID", "AISOfficeID");
define("LOGIN_DEPTID", "AISDeptID");
define("LOGIN_PAGE", "login.php");
?>
